package com.hsgene.consumables.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * @author wxf
 * @date 2018/8/15 13:39
 **/
public enum ConsumablesErrorCode implements ErrorCode {

    /**
     * 错误提示信息枚举
     */
    ADD_IS_ERROR(300001, "ADD_IS_ERROR", "添加信息失败"),

    APPLY_IS_ERROR(300007,"APPLY_IS_ERROR","申请信息失败"),

    QUERY_IS_ERROR(300002,"QUERY_IS_ERROR","查询信息失败"),

    DELETE_IS_ERROR(300003, "DELETE_IS_ERROR", "删除信息失败"),

    UPDATE_IS_ERROR(300004, "UPDATE_IS_ERROR", "修改信息失败"),

    UPDATE_IS_EXISTS(300005, "DATE_IS_EXISTS", "信息已存在，更新失败"),

    DELETE_IS_OCCUPY(300006, "DATE_IS_OCCUPY", "此耗材单位已被使用，不可删除"),
    DELETE_GOODS_IS_OCCUPY(300007, "DATE_IS_OCCUPY", "此耗材已被使用，不可删除"),

    PEANUT_ACTION_CODE_ERROR(30010, "action_code_error", "操作码错误"),

    PEANUT_ACTION_CURRENT_NOT_SUPPORTED(30011, "action_current_not_supported", "暂时不支持当前操作"),

    GENETIC_GOODS_NOT_EXISTED(30012, "genetic_goods_not_existed", "耗材不存在"),

    PARAMETER_OBJECT_CANNOT_BE_EMPTY(30014,"parameter_object_cannot_be_empty","参数对象不能为空"),

    GENETIC_GOODS_AMOUNT_NOT_ENOUGH(30013, "genetic_goods_amount_not_enough", "耗材库存不足"),

    GENETIC_GOODS_APPLY_PAGE_ERROR(30015, "GENETIC_GOODS_APPLY_PAGE_ERROR", "耗材申请列表出错"),

    APPLY_BASE_INFO_ERROR(30016, "APPLY_BASE_INFO_ERROR", "地服基础信息获取出错"),

    GENETIC_GOODS_APPLY_DETAIL_ERROR(30017, "GENETIC_GOODS_APPLY_DETAIL_ERROR", "耗材申请详情出错"),

    AUDIT_APPLY_ERROR(30018, "AUDIT_APPLY_ERROR", "审核出现错误"),

    CONSUMABLES_ALREADY_EXIST(30019,"CONSUMABLES_ALREADY_EXIST","耗材已存在"),

    CONSUMABLES_INVENTORY_SELECTED_NONE(30020, "Error_Consumables_Inventory_Selected_None", "入库耗材尚未选择，请选择需要入库的耗材！");

    private int code;

    private String message;

    private String description;

    ConsumablesErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
